<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        html,body{
            height: 100%;
        }

        body{
            /* 
            display: flex;
            justify-content: center;
            align-items: center;
            */
            position: relative;
        }

        div{
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            position: absolute;
            margin: auto;
            width: 100px;
            height: 100px;
        }

        img{
            width: 100px;
            height: 100px;
        }
    </style>
</head>
<body>
    <div>
        <img src="https://gitee.com/shen-yulin20051127/imgs/raw/master/imgs/20240912185451.png">
    </div>
</body>
</html>